﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditProfile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {

            $('#ContactFormRegistration').validate({
                rules: {
                    user_name: {
                        required: true,
                        minlength: 6
                    },
                    password: {
                        required: true,
                        minlength: 6
                    },
                    first_name: {
                        required: true,
                        minlength: 6
                    },
                    last_name: {
                        required: true,
                        minlength: 6
                    },
                    address: {
                        required: true,
                        minlength: 10
                    },
                    phone_number: {
                        required: true,
                        minlength: 10,
                        maxlength: 11
                    },
                    email: {
                        email: true
                    },
                    gender: {
                        required: true
                    },
                    DOB: {
                        required: true
                    }
                }
            });
        });
</script>
    <div class="wrapper pad1">
      <article class="col1">
        <div class="box1">
          <h2 class="top">Hot Offers of the Week</h2>
          <div class="pad"> <strong>Ho Chi Minh</strong><br>
            <ul class="pad_bot1 list1">
              <li> <span class="right color1">price: 200USD</span><a href="#">Phu Quoc</a></li>
            </ul>
            <strong>Ha Noi</strong><br>
            <ul class="pad_bot1 list1">
              <li> <span class="right color1">price: 350USD</span><a href="#">Nha Trang</a></li>
              <li> <span class="right color1">price: 400USD</span><a href="#">Ca Mau</a></li>
            </ul>
            <strong>Da Nang</strong><br>
            <ul class="pad_bot2 list1">
              <li> <span class="right color1">price: 200USD</span><a href="#">Hai Phong</a></li>
              <li> <span class="right color1">price: 500USD</span><a href="#">Noi Bai</a></li>
              <li> <span class="right color1">price: 700USD</span><a href="#">Vinh</a></li>
            </ul>
          </div>
        </div>
      </article>
      <article class="col2">
        <h3 class="pad_top1">Profile Registration</h3>
        <%
            using (Html.BeginForm("NewUser", "Account", FormMethod.Post, new { id = "ContactFormRegistration" }))
            {   
        %>
            <%= ViewData["message"] != null ? ViewData["message"] : "" %>
          <div>
            <div  class="wrapper"> <span>User Name</span>
              <input type="text" class="input" name="user_name" > &nbsp; *
            </div>
            <div  class="wrapper"> <span>Password</span>
              <input type="password" class="input" name="password" > &nbsp; *
            </div>
            <div  class="wrapper"> <span>Address</span>
              <input type="text" class="input" name="address" > &nbsp; *
            </div>
            <div  class="wrapper"> <span>First Name</span>
              <input type="text" class="input" name="first_name" > &nbsp; *
            </div>
            <div  class="wrapper"> <span>Last Name</span>
              <input type="text" class="input" name="last_name" > &nbsp; *
            </div>
            <div  class="wrapper"> <span>Phone Number</span>
              <input type="text" class="input" name="phone_number" >
            </div>
            <div  class="wrapper"> <span>Email</span>
              <input type="text" class="input" name="email" > &nbsp; *
            </div>
            <div class="select1"><span class="left">Gender</span>
                <select name="gender">
                    <option value="1">Male</option>
                    <option value="2">Female</option>
                </select>
            </div>
            <div  class="wrapper"> <span>Date of birth</span>
              <input type="text" class="fromca" name="DOB" value="" >
            </div>
            <input type="submit" class="button1" value="Update Profile" />
            <a href="<%= Url.Action("Index","Home") %>"><input type="button" class="button1" value="Cancel" /> </a>
          </div>
        <%
            }        
        %>
      </article>
    </div>

</asp:Content>
